﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.SceneManagement.LoadSceneParameters
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine.SceneManagement
{
  /// <summary>
  ///   <para>This struct collects all the LoadScene parameters in to a single place.</para>
  /// </summary>
  [Serializable]
  public struct LoadSceneParameters
  {
    [SerializeField]
    private LoadSceneMode m_LoadSceneMode;
    [SerializeField]
    private LocalPhysicsMode m_LocalPhysicsMode;

    /// <summary>
    ///   <para>See LoadSceneMode.</para>
    /// </summary>
    public LoadSceneMode loadSceneMode
    {
      get => this.m_LoadSceneMode;
      set => this.m_LoadSceneMode = value;
    }

    /// <summary>
    ///   <para>See SceneManagement.LocalPhysicsMode.</para>
    /// </summary>
    public LocalPhysicsMode localPhysicsMode
    {
      get => this.m_LocalPhysicsMode;
      set => this.m_LocalPhysicsMode = value;
    }

    /// <summary>
    ///   <para>Constructor for LoadSceneParameters. See SceneManager.LoadScene.</para>
    /// </summary>
    /// <param name="mode">See LoadSceneParameters.loadSceneMode.</param>
    public LoadSceneParameters(LoadSceneMode mode)
    {
      this.m_LoadSceneMode = mode;
      this.m_LocalPhysicsMode = LocalPhysicsMode.None;
    }

    public LoadSceneParameters(LoadSceneMode mode, LocalPhysicsMode physicsMode)
    {
      this.m_LoadSceneMode = mode;
      this.m_LocalPhysicsMode = physicsMode;
    }
  }
}
